home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / util / gnu / cvs-1.11.1p1.lha / source / src / smakefile < prev   
Encoding:
Makefile  |  2001-07-22  |  3.8 KB  |  113 lines

  1. #
  2. # $Id$
  3. #
  4. # :ts=4
  5. #
  6. # AmigaOS wrapper routines for GNU CVS, using the AmiTCP V3 API
  7. # and the SAS/C V6.58 compiler.
  8. #
  9. # Written and adapted by Olaf `Olsen' Barthel <olsen@sourcery.han.de>
  10. #                        Jens Langner <Jens.Langner@htw-dresden.de>
  11. #
  12. # This program is free software; you can redistribute it and/or modify
  13. # it under the terms of the GNU General Public License as published by
  14. # the Free Software Foundation; either version 2 of the License, or
  15. # (at your option) any later version.
  16. #
  17. # This program is distributed in the hope that it will be useful,
  18. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20. # GNU General Public License for more details.
  21. #
  22. # You should have received a copy of the GNU General Public License
  23. # along with this program; if not, write to the Free Software
  24. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  25. #
  26.  
  27. TARGET = cvs
  28.  
  29. # Programs
  30.  
  31. CC  = sc
  32. OML = oml
  33. LNK = slink
  34. CP  = copy
  35. RM  = delete quiet
  36.  
  37. # ignored warnings are:
  38. #  51 C++ comment detected                                 -- we agreed to use them
  39. #  61 undefined struct/union tag "tag-name"                -- in include files
  40. # 120 Integral type mismatch: possible portability problem -- should be used somewhen
  41. # 148 use of incomplete struct/union/enum tag "name"       -- in include files
  42. # 165 use of narrow type in prototype                      -- very unlikely portability problem
  43. # 178 indirect call without indirection operator           -- only old-style support
  44. # 212 item "name" already declared                         -- in include files
  45. # 306 .. function inlined                                  -- disturbs
  46.  
  47. # Compiler/Linker flags
  48.  
  49. CPU      =  68020
  50. DEFS     =  DEFINE=HAVE_CONFIG_H
  51. WARN     =  WARN=ALL IGNORE=51,61,120,148,165,178,212,306
  52. INCDIRS  =  IDIR="" IDIR="/" IDIR="/lib" IDIR="/diff" IDIR="/zlib" IDIR="/amiga/include" IDIR="/amiga" IDIR="/amiga/netinclude"
  53. CFLAGS   =  OPT OPTTIME OPTSCHEDULE CPU=$(CPU) UTILLIB CODE=FAR COMMENTNEST STRUCTUREEQUIVALENCE \
  54.             STRINGMERGE NOSTACKCHECK $(DEFS) $(WARN) $(INCDIRS) DEBUG=LINE
  55. LIBS     =  /amiga/amiga.lib /amiga/ssh/ssh.lib lib:sc.lib lib:debug.lib lib:small.lib \
  56.             src1.lib src2.lib /lib/cvs.lib /zlib/z.lib /diff/diff.lib
  57.  
  58. OBJ1     =  add.o admin.o annotate.o buffer.o checkin.o checkout.o classify.o \
  59.             client.o commit.o create_adm.o cvsrc.o diff.o edit.o entries.o expand_path.o \
  60.             fileattr.o find_names.o hardlink.o hash.o history.o ignore.o import.o \
  61.             lock.o log.o login.o logmsg.o main.o mkmodules.o modules.o myndbm.o no_diff.o
  62.  
  63. OBJ2     =  parseinfo.o patch.o rcs.o rcscmds.o recurse.o release.o remove.o repos.o \
  64.             root.o scramble.o server.o status.o tag.o update.o watch.o wrapper.o vers_ts.o \
  65.             subr.o filesubr.o run.o version.o error.o zlib.o
  66.  
  67. OBJS     =  $(OBJ1) $(OBJ2)
  68.  
  69. HEADERS  =  buffer.h cvs.h rcs.h hardlink.h hash.h myndbm.h \
  70.             update.h server.h client.h error.h fileattr.h edit.h watch.h
  71.  
  72. #
  73.  
  74. default: $(TARGET)
  75.  
  76. # Default rule
  77.  
  78. .c.o:
  79.   @echo "*e[32mCompiling $*.c*e[0m"
  80.   @$(CC) $(CFLAGS) $<
  81.  
  82. #
  83.  
  84. $(TARGET): $(OBJS) /amiga/amiga.lib /amiga/ssh/ssh.lib /lib/cvs.lib /zlib/z.lib /diff/diff.lib
  85.   @echo "*e[32mLinking src1.lib*e[0m"
  86.   @$(OML) src1.lib r $(OBJ1)
  87.   @echo "*e[32mLinking src2.lib*e[0m"
  88.   @$(OML) src2.lib r $(OBJ2)
  89.   @echo "*e[32mLinking $@*e[0m"
  90.   @$(LNK) lib:cres.o to $@.debug lib $(LIBS) addsym batch smalldata smallcode map $@.map,fhx \
  91.   fwidth 32 pwidth 32 swidth 32 with lib:utillib.with addsym
  92.   @$(LNK) $@.debug to $@ nodebug noicons
  93.   @protect $@ +p
  94.  
  95. # leaves .lib
  96. clean:
  97.   -$(RM) $(OBJ1)
  98.   -$(RM) $(OBJ2)
  99.   -$(RM) cvs.lnk cvs.map
  100.  
  101. #
  102. cleanall: clean
  103.   -$(RM) $(TARGET)
  104.  
  105. #
  106.  
  107. $(OBJS): $(HEADERS) options.h
  108.  
  109. #
  110.  
  111. rcscmds.o: rcscmds.c /diff/diffrun.h
  112. zlib.o: zlib.c /zlib/zlib.h
  113.